<?php

if (!$BODY) {

    $t_data = IsPage($GL, $_GET['action']);
    if (isset($_GET['action']) and $t_data) {
        $HEADER = $t_data["title"];
        $BODY = str_replace("{EOF}", "\n", htmlspecialchars_decode($t_data["text"], ENT_QUOTES));
    }   
    else {
        $HEADER = "Ошибка";
        $BODY = "<span>Страница не найдена.</span>";
    }
}

?>
